package db.entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the taperspc database table.
 * 
 */
@Embeddable
public class TaperSpcPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private String dcElement;

	private String lotID;

    public TaperSpcPK() {
    }
	public String getDcElement() {
		return this.dcElement;
	}
	public void setDcElement(String dcElement) {
		this.dcElement = dcElement;
	}
	public String getLotID() {
		return this.lotID;
	}
	public void setLotID(String lotID) {
		this.lotID = lotID;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TaperSpcPK)) {
			return false;
		}
		TaperSpcPK castOther = (TaperSpcPK)other;
		return 
			this.dcElement.equals(castOther.dcElement)
			&& this.lotID.equals(castOther.lotID);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.dcElement.hashCode();
		hash = hash * prime + this.lotID.hashCode();
		
		return hash;
    }
}